package com.sdy.healthcode.biz.mapper;

import com.sdy.healthcode.biz.dto.schedule.ExpertsScheduleDailyDTO;
import com.sdy.healthcode.biz.model.ExpertsScheduleDaily;
import com.sdy.mvc.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zzq
 * @since 2020-03-10
 */
public interface ExpertsScheduleDailyMapper extends BaseMapper<ExpertsScheduleDaily> {
    /**
     * 查询待排班信息
     * @param monthStr 月分
     */
    List<ExpertsScheduleDaily> queryToScheduleList(@Param("monthStr") String monthStr, @Param("weekStr") String weekStr);
    /**
     * 查询已排班模板信息
     */
    List<ExpertsScheduleDailyDTO> queryScheduledTemplateList(@Param("deptId") Integer deptId);

    /**
     * 删除已排班模板信息
     */
    void removeScheduleTemplateByDept(@Param("deptId") Integer deptId);

    List<ExpertsScheduleDaily> listExpertsScheduleForDay(@Param("dateBeginStr") String dateBeginStr,
                                                         @Param("dateEndStr") String dateEndStr,
                                                         @Param("deptId") Integer deptId,
                                                         @Param("doctorId") Integer doctorId);
}
